package com.ddzh.mapper;

import com.ddzh.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface UserMapper {
    /**
     * 根据用户名查询用户信息
     * @param username
     * @return
     */
    @Select("select * from tb_user where username=#{username}")
    User findUserById(@Param("username") String username);
}
